package org.dromara.system.service;

import jakarta.servlet.http.HttpServletResponse;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.system.domain.bo.SysMinioBo;
import org.dromara.system.domain.bo.SysOssBo;
import org.dromara.system.domain.vo.SysMinioVo;
import org.dromara.system.domain.vo.SysOssVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

/**
 * 文件上传 服务层
 */
public interface ISysMinioService {

    TableDataInfo<SysMinioVo> queryPageList(SysMinioBo sysOss, PageQuery pageQuery);

    List<SysMinioVo> listByIds(Collection<Long> ossIds);

  SysMinioVo getById(Long ossId);

  SysMinioVo upload(MultipartFile file, String treeValue, String name, String fileName);

  SysMinioVo upload(MultipartFile file);

    void download(Long ossId, HttpServletResponse response) throws IOException;

    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

}
